package com.app.dao;

import com.app.entity.User;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @autor xiaoyu.fang
 * @date 2019/10/12 11:13
 */
public interface UserRepository extends MongoRepository<User, ObjectId> {

    User findByOpenId(String openId);

    User findByIdAndDataStatus(ObjectId id, Integer dataStatus);
}
